<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/app/tenantAppInfo.js"></script>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<br>' +
            '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>运营管理</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>增加APP发版</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <div class="columns pull-left">
                        <h5 class="font-bold">增加APP发版</h5>
                    </div>
                    <div class="ibox-tools">
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="frmTenantAppInfo">
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">更新类型：</label>
                            <div class="col-sm-8">
                                <select class="form-control" name="upgradeType" id="upgradeType">
                                    <option value="0">版本升级</option>
                                    <option value="1">版本回滚</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">应用类型：</label>
                            <div class="col-sm-8">
                                <select class="form-control" name="appType" id="appType">
                                    <option value="0">IOS</option>
                                    <option value="1">ANDROID</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">版本号：</label>
                            <div class="col-sm-8">
                                <input class="form-control" id="appVersion" name="appVersion">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">版本发布时间：</label>
                            <div class="col-sm-8">
                                <input class="form-control" id="publishTime" name="publishTime">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">版本名称：</label>
                            <div class="col-sm-8">
                                <input class="form-control" id="versionName" name="versionName">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">版本描述：</label>
                            <div class="col-sm-8">
                                <textarea class="form-control" id="versionDesc" name="versionDesc"></textarea>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">安装文件下载路径：</label>
                            <div class="col-sm-8">
                                <input class="form-control" id="appLocation" name="appLocation">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">手机系统需求最低版本：</label>
                            <div class="col-sm-8">
                                <input class="form-control" id="osMinVersion" name="osMinVersion">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">是否强制更新：</label>
                            <div class="col-sm-8">
                                <select class="form-control" name="isMustUpdate" id="isMustUpdate">
                                    <option value="0">否</option>
                                    <option value="1">是</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-3 col-sm-offset-8 text-right">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">

    var publishTime = laydate.render({
        elem: '#publishTime',
        type: 'datetime',
        format: 'yyyy-MM-dd HH:mm:ss',
        trigger: 'click'
    });
    addTenantAppInfo.init();
</script>
</body>
</html>
